package com.sia.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: Sirius
 * @Date: 2022/1/2 14:36
 * @Description:
 * 数采操作控制器的接口
 * 每一种协议微服务都要对该接口进行实现
 **/
@RestController
@RequestMapping("//collectController")
public interface ICollectController {

    /**
     * 开启指定设备的数采
     *
     *
     * @param request
     * @return
     * 成功返回1，失败返回0
     */
    @RequestMapping("/startCollect")
    String startCollect(HttpServletRequest request);


    /**
     * 关闭指定设备的数采
     *
     * @param request
     * @return
     * 成功返回1，失败返回0
     */
    @RequestMapping("/stopCollect")
    String stopCollect(HttpServletRequest request);

    /**
     * 向指定点位写入变量
     *
     * @param request
     * @return
     */
    @RequestMapping("/writeVariable")
    String writeVariable(HttpServletRequest request);

}
